<div id="bd">
  <div id="yui-main">
    <div class="yui-b">
      <h2 id="chapter-title"><?php echo $chapterName;?></h2>
      <div id="chapter-body">
	<?php
		foreach($sections as $section) :
			echo SectionHelper::formatSection($section, 'originalSection');
		endforeach;
	?>
      </div>
    </div>
  </div>
</div>
<div id="highlight-floater"></div>
<!-- comment dialog -->
<div id="comments" class="yresizable-pinned">
    <div class="hd" id="comments-head">
      评论 <span class="close" onclick="Comments.close();">X</span>
    </div>
    <div class="bd">

      <div id="comment-tabs">

        <!-- comment form -->
        <div id="comment-tabs-form" class="tab">

	<form action="<?php echo $this->createUrl('comments/post');?>" method="post" id="commentform">
            <p>
              <input type="hidden" name="nodenum" value="">
              <label for="id_name">姓名 (必填)</label>
              <input type="text" name="name" id="id_name" value="" tabindex="1">

            </p>
            <p>
              <label for="id_email">E-mail (必填 但本站不会显示)</label>
              <input type="text" name="email" id="id_email" value="" tabindex="2">
            </p>
            <p>
              <label for="id_url">站点</label>
              <input type="text" name="url" id="id_url" value="" tabindex="3">

            </p>
            <p>
              <label for="id_comment">内容 (必填)</label>
              <textarea name="comment" id="id_comment" tabindex="4" cols="40" rows="15"></textarea>
            </p>
          </form>
        </div>

        <!-- comments on this node tab: filled in dynamically -->

        <div id="comment-tabs-current" class="tab">
          <ol id="current-comments-list"></ol>
        </div>

        <!-- all comments tab: also dynamic -->
        <div id="comment-tabs-all" class="tab">
          <ol id="all-comments-list"></ol>
        </div>

        <!-- original -->
        <div id="comment-tabs-original" class="tab">
		<div id="comment-text"></div>
        </div>

      </div>
    </div>

    <script type="text/javascript" src="<?php echo STATIC_URL; ?>/themes/<?php echo Yii::app()->theme->name;?>/css/yui.ext.js"></script>

    <div class="ft">

       <div id="comments-message"></div>
       <div id="comments-submit-wrapper">
        <input type="button" id="comment-submit" value="提交评论" onclick="Comments.submitComment();">
        <input type="button" id="comment-close" value="关闭" onclick="Comments.close();">
      </div>
    </div>
  </div>
<!-- END COMMENT dialog -->
<div id="chapter_nav" style="display:none;width:220px;">
    <?php echo $expressNavContent;?>
</div>
<?php 
Yii::app()->getClientScript()->registerScriptFile(
		$this->createUrl('default/hits'),
		CClientScript::POS_END
);
?>
